﻿
namespace SYH.Comp
{
    public abstract class MyConst
    {
        public static readonly string ImageServer = System.Configuration.ConfigurationManager.AppSettings["ImageServer"];  // "http://i1.qihuiwang.com";
        public static readonly string ShopServerFormat = System.Configuration.ConfigurationManager.AppSettings["ShopDomain"];// "http://{0}.shop.qihuiwang.com";
        public static readonly string MemberBaiduServerFormat = System.Configuration.ConfigurationManager.AppSettings["MemberBaiduDomain"];// "http://{0}.bd.qihuiwang.com";
        public static readonly string webDomain = System.Configuration.ConfigurationManager.AppSettings["webDomain"];//"http://{0}.qihuiwang.com";
        public static readonly string shopDomain = System.Configuration.ConfigurationManager.AppSettings["shopDomain"];//"http://{0}.shop.qihuiwang.com";
        public static readonly string SYHDomain = string.Format(webDomain, "www");  // "http://www.qihuiwang.com";
        public static readonly string memberDomain = string.Format(webDomain, "q");//"http://q.qihuiwang.com";
        public static readonly string SaasDomain = string.Format(webDomain, "saas");//
        public static readonly string NewsDomain = string.Format(webDomain, "news");
        public static readonly string LoginUrl = string.Format("{0}/login.aspx", memberDomain);//登陆地址
        public static readonly string RegisterUrl = string.Format("{0}/register/", SYHDomain);//注册地址
        public static readonly string DefaultLogoUrl = "../image/logo.gif";   //用户系统，公司默认Logo地址
        public static readonly string AdImgUrl = string.Format(webDomain, "my") + "/UpLoad";//广告图片的默认地址
        public static readonly string DefaultProductImageUrl70x50 = "/Image/defaultImg/no_least_img.gif";
        public static readonly string DefaultProductImageUrl310x230 = "/Image/defaultImg/no_big_img.gif";
        public static readonly string DefaultProductImageUrl100x74 = "/Image/defaultImg/no_small_img.gif";
        public static readonly string DefaultProductImageUrl145x104 = "/Image/defaultImg/no_logo_img.png";
        public static readonly string MemberJobUrl = webDomain + "/job/job.html";//JOB栏目已经删除
        public static readonly string MemberOldJobUrl = webDomain + "/job.html";//JOB栏目已经删除

        public static readonly string LuceneServiceAccount = "@#@$@GTEYHX232C[]||EF4VSTGHBSRR*(^(()^%1547S32DCS";   //前台索引服务账号
        public static readonly string LuceneServicePwd = "^FTfttijhlisde??<>YTYR][234251950z&^##@"; //前台索引服务账号
        public static readonly string NewsIndexPath = "~/Lucene/";//资讯索引文件相对路径
        public static readonly string CompanyIndexPath = "~/Lucene/Company/";//公司索引文件相对路径
        public static readonly string ProductIndexPath = "~/Lucene/Product/";//产品索引文件相对路径
        public static readonly string BuyIndexPath = "~/Lucene/Buy/";//采购索引文件相对路径
        public static readonly string CooperateIndexPath = "~/Lucene/Cooperate/";//合作索引文件相对路径

        #region MemberCache

        public static readonly string SYHWebCacheKey = "SYHWeb_{0}";//前台缓存键值名称

        #endregion


        #region 用户后台使用
        public static readonly string M_DefaultProductImage70x50 = "/image/product-moren/img_70X50.jpg";
        #endregion

        public static readonly string CreateAddress = string.Format(webDomain + "/", "www");
        public static readonly string AdvTemplateVar = "$SYH_AdvPath$"; //广告条广告图片标签变量
        public static readonly string SpecialImageName = "index_img.jpg";
        //错误地址
        public static readonly string MemberWebStop = string.Format("{0}/error.html", SYHDomain);
        #region 会员标志
        public static readonly string OneImg = "/image/cooperimg/gold{0}.gif", TwoImg = "/image/cooperimg/platinum{0}.gif", ThreeImg = "/image/cooperimg/diamond{0}.gif";
        public static readonly string AdvancedLogoUrl = string.Format(OneImg, "");//黄金会员标志
        public static readonly string GoldLogoUrl = string.Format(TwoImg, "");//白金会员标志
        public static readonly string DiamondLogoUrl = string.Format(ThreeImg, "");//钻石会员标志
        public static readonly string AdvancedLogoUrl_1 = string.Format(OneImg, "1");//黄金会员标志，产品、采购、合作 详细页右侧用
        public static readonly string GoldLogoUrl_1 = string.Format(TwoImg, "1");//白金会员标志，产品、采购、合作 详细页右侧用
        public static readonly string DiamondLogoUrl_1 = string.Format(ThreeImg, "1");//钻石会员标志，产品、采购、合作 详细页右侧用
        #endregion

         
    }
}
